package day07;

public class Module {
    //属性
    private String name;  
    private int num; 

    //构造代码块
    {
        System.out.println("构造代码块");
    }

    //构造方法
    public Module() {
        System.out.println("无参构造方法");
    }

    public Module(String name, int num) {
        this.name = name;
        this.num = num;
        System.out.println("有参构造方法");
    }
}
